<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>{$title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="description" content="Matthew Makins' online CV." />
<meta name="keywords" content="Matthew Makins, Matt Makins" />
<link href="templates/mattmakins.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/images.js"></script>
<script language='javascript' src='scripts/blog.js'></script>

</script>
</head>

<body onLoad="Init()">

<div align="center">
<div id="pageDesign" align="center">

<!-- BANNER -->

<div id="banner"></div>

<!-- MAIN MENU -->

<!-- CONTENT -->
<div id="blogContent">
<p class="pageHeader">New Blog Entry</p><hr />

<br /><br />

<!-- 
	DISPLAYS ANY ERRORS THAT MAY EXIST
-->
{if $errorsPresent}
<div id="errors">
<h1>{$numberOfErrors} errors present!</h1>
{foreach from=$errors item=error}
<ul>
<li>{$error}</li>
</ul>
{/foreach}
</div>
{/if}


<form onSubmit="submitPost()" action="new.php" method="POST">
<input type="hidden" id="entry" name="entry" value='{$article_value}'>
<input type="hidden"name="do" value='{$do_value}'>
<input type="hidden"name="id" value='{$id}'>

<div id="new-post">

<table>
  <tr>
    <td class="header">Title:</td>
    <td colspan="2"><input class="text-field" type="text" name="title" value="{$title_value}"></td>
  </tr>
  <tr>
    <td class="header">Category:</td>
    <td colspan="2"><select name="category" class="option-field">     
        {html_options values=$category_id output=$category_name selected=$category_value}   
        </select>
    </td>
  </tr>
  <tr>
    <td class="header">Comments: </td>
    <td width="10"><input class="checkbox-field" type="checkbox" name="comments" value="true" /> </td>
    <td>Allow people to comment on this post.</td>
  </tr>
  <tr>
    <td class="header" colspan="3"><br/><br/>Post Entry:<br/><br/></td>
  </tr>
  <tr>
    <td colspan="3">
    <table class="editor" cellspacing="0" cellpadding="0">
      <tr class="editorToolbar">
        <td align="center" class="button" id="boldTd">
        <img alt="Bold" src="templates/images/bold2.png" onClick="bold()"></td>
        <td class="button" align="center" id="italicTd"><img alt="Italic" src="templates/images/italic.png" onClick="italic()"></td>
        <td class="button" align="center" id="underlineTd"><img alt="Underline" src="templates/images/underline.png" onClick="underline()"></td>
        <td class="button" align="center"><img src="templates/images/seperator.png"></td>
        <td class="button" align="center" id="justifyleftTd"><img alt="Align Left" src="templates/images/left.png" onClick="left()"></td>
        <td class="button" align="center" id="justifycenterTd"><img alt="Center" src="templates/images/center.png" onClick="center()"></td>
        <td class="button" align="center" id="justifyrightTd"><img alt="Align Right" src="templates/images/right.png" onClick="right()"></td>
        <td class="button" align="center"><img src="templates/images/seperator.png"></td>
        <td class="button" align="center" id="insertunorderedlistTd"><img alt="Bullets" src="templates/images/unorderedlist.png" onClick="bullets()"></td>
        <td class="button" align="center" id="insertorderedlistTd"><img alt="Numbered List" src="templates/images/orderedlist.png" onClick="numbers()"></td>
        <td class="button" align="center" id="createlinkTd"><img alt="Hyperlink" src="templates/images/hyperlink.png" onClick="hyperlink()"></td>
        <td class="button" align="center" id="imageTd"><img alt="Insert Image" src="templates/images/image.png" onClick="image()"></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="13">
        <iframe id="iView"></iframe>
        </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr><td colspan="3"><br/><br/><input type="submit" onclick="submitPost()" value="Add Post" /></td></tr>
</table>

</div>
<br/><br/>
</div>

<div id="image-select">
Please choose an image to add:
<img alt="Close" src="#" onlick="close()" >
</div>

  <!-- Footer include -->
  {include file="footer.tpl"}
	
</div>
</div>
</body>
</html>
